package com.koron.css2.electronicCred.service;

import com.koron.css2.electronicCred.service.authbizcode.AbstractAuthBizCodeService;
import com.koron.css2.electronicCred.service.authinfo.AbstractAuthInfoService;
import com.koron.css2.electronicCred.service.credfile.AbstractCredFileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
public class ServicePool {

    public static Map<String, AbstractAuthBizCodeService> authBizCodeServices;

    @Autowired
    public void setAuthBizCodeServices(Map<String, AbstractAuthBizCodeService> authBizCodeServices) {
        ServicePool.authBizCodeServices = authBizCodeServices;
    }

    public static Map<String, AbstractAuthInfoService> authInfoServices;

    @Autowired
    public void setAuthInfoServices(Map<String, AbstractAuthInfoService> authInfoServices) {
        ServicePool.authInfoServices = authInfoServices;
    }

    public static Map<String, AbstractCredFileService> credFileServices;

    @Autowired
    public void setCredFileServices(Map<String, AbstractCredFileService> credFileServices) {
        ServicePool.credFileServices = credFileServices;
    }

}
